﻿
@{
    ViewData["Title"] = "标识牌Add";
}

@section Scripts
    {
    <script type="text/javascript">
        var selfLayer = null, page = 1, active = null;
        layui.use(['form', 'layedit', 'upload', 'laydate'], function () {
            var form = layui.form, upload = layui.upload; //表格

             //指定允许上传的文件类型
             upload.render({
               elem: '#test3'
               ,url: '/LogoStock/AddLogoInputStock'
               ,accept: 'file'
               ,exts: 'xlsx|xls'
               ,headers: { 'Authorization': 'Bearer ' + localStorage.getItem("X-TOKEN") }
               @*,data: { signageApplicationReceiptId:'@Html.Raw(ViewBag.Id)',
                  enterpriseId:'@Html.Raw(ViewBag.EnId)',
                  speciesManageId:'@Html.Raw(ViewBag.spId)'}*@
               //普通文件
                 , done: function (res) {
                     console.log(res)

                     if (res.code == 200)
                     {
                         alert(res.msg);
                         $("#subName").show();
                         $("#sub").show();
                         $("#sub").val(res.msg);
                     }
               }
             });

        });
    </script>
}


<form class="layui-form layui-form-pane" asp-action="Edit">
    <div class="layui-form-item">
        <label class="layui-form-label">导入标签</label>
        <div class="layui-input-block">
            <button type="button" class="layui-btn" id="test3"><i class="layui-icon"></i>导入标签</button>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label" id="subName" style="display:none;">导入成功</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input w_545" style="display:none;" autocomplete="off" lay-verify="required" id="sub">
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button style="width: 100px" class="layui-btn layui-btn-primary" asp-action="List">返回</button>
        </div>
    </div>
</form>

